package day20171122.test02;

public class Xt040201 extends A {
    public static void main(String[] args) {
        Xt040201 bb = new Xt040201();
        bb.testVisitControl();
    }

    public void testVisitControl() {
        A b=new A();

        System.out.println(a + dispA());
      //  System.out.println(b + dispB());   //b是私有的，此处用b不行
        System.out.println(c + dispC());
        System.out.println(d + dispD());
    }

}